#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "screen1.h"
#include "screens.h"

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    screen1 * s1;
    screens * s2;
    screens * s3;
    screens * s4;
    explicit MainWindow(QWidget *parent = 0);
    void setUpEnvironment();
    ~MainWindow();

private slots:
    void updateHue();
    void updateSaturation();
    void updateBrightness();
    void updateContrast();
    void on_playAll_clicked();
    void on_pauseAll_clicked();
    void on_stopAll_clicked();
    void on_checkFlanger_toggled(bool checked);
    void on_checkFlanger_stateChanged(int arg1);
    void on_checkEcho_stateChanged(int arg1);
    void checkSignal(QString);
    void on_stimmung1_clicked();
    void on_stimmung2_clicked();
    void setStimmung0();

private:
    Ui::MainWindow *ui;
    QTimer *timer;
    qreal hue, saturation, brightness, contrast;
    bool toggleHue, toggleSaturation, toggleBrightness, toggleContrast;
    int stimmung;
    int temperatur;
    bool isPlaying, colorFlag;
    // Sensorwerte
    int oldPotiValue;
    int oldColor;
    qreal oldTempValue;

    void setStimmung(int);
    void increaseSaturation(qreal);
    void decreaseSaturation(qreal);
};

#endif // MAINWINDOW_H
